using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Platform.Buff.Buffs
{
    public class FrozenBuff : BuffBase
    {

        public override void OnStart()
        {
            base.OnStart();
            currentTarget.armor.AddPercentModifier(0.5f);
            currentTarget.moveSpeed.AddPercentModifier(0.5f);
            currentTarget.jumpHeight.AddPercentModifier(0.5f);
            Fx.IceColorFx();
        }

        public override void OnEnd()
        {
            base.OnEnd();
            currentTarget.armor.RemovePercentModifier(0.5f);
            currentTarget.moveSpeed.RemovePercentModifier(0.5f);
            currentTarget.jumpHeight.RemovePercentModifier(0.5f);
            Fx.CancelColorChange();
        }

    }
}